package com._58city.spark.app.dao;

import java.io.Serializable;
import java.util.Arrays;

/**
 * @author lihao
 * 当一批数据有多个维度要查询时，多组key的包装类
 */
public class KeyInfo implements Serializable{

	private static final long serialVersionUID = 2467649298495324794L;

	private String key_name;
	
    private String[] key_values;
    
	public KeyInfo() {
		super();
	}

	public KeyInfo(String key_name, String[] key_values) {
		super();
		this.key_name = key_name;
		this.key_values = key_values;
	}

	public String getKey_name() {
		return key_name;
	}

	public void setKey_name(String key_name) {
		this.key_name = key_name;
	}

	public String[] getKey_values() {
		return key_values;
	}

	public void setKey_values(String[] key_values) {
		this.key_values = key_values;
	}

	@Override
	public String toString() {
		return "KeyInfo ["
				+ (key_name != null ? "key_name=" + key_name + ", " : "")
				+ (key_values != null ? "key_values="
						+ Arrays.toString(key_values) : "") + "]";
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
